//
//  OIPubListTableViewCell.m
//  EducationOID
//
//  Created by slz on 2017/5/25.
//  Copyright © 2017年 bnsr. All rights reserved.
//

#import "OIPubListTableViewCell.h"

@implementation OIPubListTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        _nameLabel = [UILabel new];
        _nameLabel.fontSize = 14;
        _nameLabel.textColor = kDark_TextColor_Default;
        [self.contentView addSubview:_nameLabel];
        [_nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self.contentView.mas_left).offset(11);
            make.centerY.mas_equalTo(self.contentView.mas_centerY);
        }];
        
        _timeLabel = [UILabel new];
        _timeLabel.fontSize = 13;
        _timeLabel.textColor = kBlue_Color_Default;
        [self.contentView addSubview:_timeLabel];
        [_timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.mas_equalTo(self.contentView.mas_right).offset(-11);
            make.bottom.mas_equalTo(self.contentView.mas_bottom);
        }];
        
        UIView * lineView = [UIView new];
        lineView.backgroundColor = kLineColor_Gray_Default;
        [self.contentView addSubview:lineView];
        [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self.contentView.mas_left).offset(11);
            make.right.mas_equalTo(self.contentView.mas_right).offset(-11);
            make.bottom.mas_equalTo(self.contentView.mas_bottom);
            make.height.mas_equalTo(0.5);
        }];
    }
    return self;
}

@end
